﻿using AutoMapper;
using KWT.DRG_DIP.DTO.QC;
using KWT.DRG_DIP.DTO.qcRules;
using KWT.DRG_DIP.PO.QC;
using KWT.DRG_DIP.PO.qcRules;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace KWT.DRG_DIP.Mapper.QC
{
    public class QCMapper:Profile
    {
        public QCMapper()
        {
            CreateMap<Sys_QC_Err, InAddOrUpdate>().ReverseMap();
            CreateMap<qc_Rules_ValueRange, InValueRange>().ReverseMap();// 父对象映射
            CreateMap<qc_Rules_ValueRangeInfo, InValueRangeInfo>().ReverseMap();// 子对象映射

            CreateMap<qc_Rules_Fields, InRuleField>().ReverseMap();
            
            CreateMap<qc_Rules, InQcRules>().ReverseMap();
        }
    }
}
